import { getSupplyDetail, getResourceDetail } from "@/api/element/supply";
import { getElementProvide, getFileDetail } from "@/api/element/elementProvide";
import { getCompany } from "@/api/system/company";
import { getBase } from "@/api/info/news";
import { getNodeDetail } from "@/api/supply";

export const supplyTypeEnum = {
  1: "机柜",
  2: "带宽",
  3: "算力服务器",
  4: "算力",
  5: "硬件",
};

export const gpuAbilityTypeEnum = {
  1: "算力包月",
  2: "卡时计费",
};

export const elementFromEnum = {
  1: "平台",
  2: "供应商",
  3: "算力用户",
  4: "中国算力网",
};

export const elementTypeEnum = {
  1: "数据集",
  2: "模型",
};

export const elementShareEnum = {
  0: "私密",
  1: "共享",
};

export const elementDownloadEnum = {
  "-1": "不可以",
  0: "可以",
  1: "线下协商",
};

export const elementRecommendEnum = {
  0: "否",
  1: "是",
};

export default {
  0: {
    api: getCompany,
    title: "认证审核",
  },
  1: {
    api: getSupplyDetail,
    title: "供给详情",
  },
  2: {
    api: getBase,
    title: "新闻资讯",
  },
  4: {
    api: getElementProvide,
    title: "元素详情",
  },
  5: {
    api: getNodeDetail,
    title: "资源节点",
  },
  6: {
    api: getResourceDetail,
    title: "资源申请详情",
  },
  7: {
    api: getFileDetail,
    title: "元素文件",
  },
};
